package com.atguigu.spzx.manager.service.Impl;

import com.atguigu.spzx.manager.mapper.OrderStatisticsMapper;
import com.atguigu.spzx.manager.service.OrderStatisticsService;
import com.atguigu.spzx.model.dto.order.OrderStatisticsDto;
import com.atguigu.spzx.model.entity.order.OrderStatistics;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: OrderStatisticsServiceImpl
 * Package: com.atguigu.spzx.manager.service.Impl
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/7 17:52
 * @Version 1.0
 */
@Service
public class OrderStatisticsServiceImpl implements OrderStatisticsService {
    @Resource
    private OrderStatisticsMapper orderStatisticsMapper;
    /**
     * 根据日期范围查找订单统计数据
     * @param orderStatisticsDto
     * @return
     */
    @Override
    public List<OrderStatistics> getOrderStatisticsData(OrderStatisticsDto orderStatisticsDto) {
        return orderStatisticsMapper.getOrderStatisticsData(orderStatisticsDto);
    }
}
